#ifndef __MYSQL_DATABASE
#define __MYSQL_DATABASE


#include "StdAfx.h"

namespace Database
{
	class IDatabase;

	namespace _xxImpl_MySql
	{
		class MysqlDatabase;
		class QueryResult;
		class Field;
		class row;


		class MysqlDatabase : public IDatabase
		{
				MYSQL* m_pMySql;
		public:
				MysqlDatabase();


				bool Connect(std::string szHost, std::string szUser, std::string szPassword, std::string szDatabase, uint32 port);
				void Close();
				std::string EscapeString(std::string szFrom);
				std::string GetLastError();
				bool Execute(std::string szQuery);
				IQueryResult* Query(std::string szQuery, ...);
		};
	}
}

#endif